
#include "gtest/gtest.h"
#include "../case/test_judger_checker.cpp"

#ifdef HAS_LIB_YANG
#include "../case/test_libyang.cpp"
#endif
#include "kernel.h"
#ifdef __cplusplus
extern "C" {
#endif

int main(int argc, char **argv)
{
    /* 调用库函数 */
	extern int APP_Startup();
	int result = APP_Startup();
	
	/* system configuration recover */
    extern void SYSMNG_CfgRecover();
    SYSMNG_CfgRecover();

	printf("Running testcases...\r\n");
	testing::InitGoogleTest(&argc, argv);
	
	int ret = RUN_ALL_TESTS();

    extern int g_system_runing;
	for (;g_system_runing == 1;){
		OS_sleep(10);
	}

	return ret;
}

#ifdef __cplusplus
} /* extern "C" */
#endif /* __cplusplus */

